import request from '@/utils/request'

export function getPcwDataKeys(query) {
  return request({
    url: '/pcw/pcwChart/getCompanyKeyDataTable',
    method: 'post',
    data: query
  })
}

export function getKeys(companyId) {
  return request({
    url: '/pcw/pcwChart/getCompanyKey?id=' + companyId,
    method: 'get'
  })
}

export function getPcwDataKeysByCharts(query) {
  return request({
    url: '/pcw/pcwChart/getCompanyKeyDataCharts',
    method: 'post',
    data: query
  })
}

export function getPcwSubjectList(query) {
  return request({
    url: '/pcw/pcwChart/getCompanySubjectDataTable',
    method: 'post',
    data: query
  })
}

export function getPcwFocusSubject(companyId) {
  return request({
    url: '/pcw/pcwChart/getCompanyFocusOnSubject?id=' + companyId,
    method: 'get'
  })
}

export function getPcwFocusCharts(data) {
  return request({
    url: '/pcw/pcwChart/getCompanySubjectDataChart',
    method: 'post',
    data: data
  })
}

export function getFinancialSummary(data) {
  return request({
    url: '/pcw/pcwChart/getFinancialSummary',
    method: 'get',
    params: data
  })
}
